module.exports = function(router){
	router.map({
		"/":{
			component(resolve){
				require(["../views/admin/article-list.vue"] , resolve)
			}
		},
		"/articleForm":{
			component(resolve){
				require(["../views/admin/article-form.vue"] , resolve)
			}
		},
		"/articleList":{
			component(resolve){
				require(["../views/admin/article-list.vue"] , resolve)
			}
		},
		"/articleEdit":{
			component(resolve){
				require(["../views/admin/article-form.vue"] , resolve)
			}
		},
		"/informationSetting":{
			component(resolve){
				require(["../views/admin/information-setting.vue"] , resolve)
			}
		},
		"/columnList":{
			component(resolve){
				require(["../views/admin/column-list.vue"] , resolve)
			}
		},
		"/addColumn":{
			component(resolve){
				require(["../views/admin/column-form.vue"] , resolve)
			}
		},
		"/columnEdit":{
			component(resolve){
				require(["../views/admin/column-form.vue"] , resolve)
			}
		},
		//轮播管理
		"/bannerForm":{
			component(resolve){
				require(["../views/admin/banner-form.vue"] , resolve)
			}
		},
		"/bannerList":{
			component(resolve){
				require(["../views/admin/banner-list.vue"] , resolve)
			}
		}
	});
	router.beforeEach(function(){
		window.scrollTo(0,0);
	})
}
